from selenium.webdriver.common.by import By

from baserk import Base
class Page(Base):
    #XPATH text定位方式
    def find_sousuokuang(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜商品名称 作者 出版社 ISBN"]')
        ele=self.driver.find_element(loc)
        return ele
    #CLASS_NAME 定位
    def find_shurukuang(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.driver.find_element(loc)
        return ele
    #ID定位
    def find_sousuoanniu(self):
        loc=(By.ID,'com.kongfz.app:id/tvSearch')
        ele=self.driver.find_element(loc)
        return ele







